package com.xique.api.service.biz.service;

import com.xique.api.api.model.LoginApiThirdToken;
import com.xique.api.bean.request.ThirdAccountAddRequest;
import com.xique.common.core.domain.R;
import com.xique.common.core.web.domain.AjaxResult;

/**
 * @author shd
 * @create 2022/2/24 13:59
 */
public interface IApiThirdTokenBizService {

    /**
     * 获取thirdAccount
     *
     * @param appId     appId
     * @param appSecret appSecret
     * @return com.xique.common.core.domain.R<com.xique.api.api.model.LoginApiThirdToken>
     * @author shd
     * @date 2022/2/24 14:00
     */
    R<LoginApiThirdToken> getThirdAccount(String appId, String appSecret);

    /**
     * 获取appId，appSecret
     *
     * @return com.xique.common.core.web.domain.AjaxResult
     * @author shd
     * @date 2022/2/25 14:02
     */
    AjaxResult getAppIdAndAppSecret();

    /**
     * 添加第三方访问账号
     *
     * @param request request
     * @return com.xique.common.core.web.domain.AjaxResult
     * @author shd
     * @date 2022/2/25 14:17
     */
    AjaxResult addThirdAccount(ThirdAccountAddRequest request);
}
